﻿using UnityEngine;

namespace QFramework.Example
{
    public class MonoBehaviourBuilderExample : MonoBehaviour
    {
        void Start()
        {
            Fluent.MonoBehaviour(gameObject)
                .OnStart(() => { Debug.Log("On Start"); })
                .OnUpdate(() => { Debug.Log("On Update"); })
                .OnDestroy(() => { Debug.Log("On Destroy"); })
                .Build();
        }
    }
}